<?php
/**
 * Created by PhpStorm.
 * User: 志俊
 * Date: 2015/11/17 0017
 * Time: 21:43
 */
$mysql_server_name='localhost'; //改成自己的mysql数据库服务器
$mysql_username='root'; //改成自己的mysql数据库用户名
$mysql_password='root'; //改成自己的mysql数据库密码
$mysql_database='edmac'; //改成自己的mysql数据库名

$conn=mysql_connect($mysql_server_name,$mysql_username,$mysql_password) or die("error connecting") ; //连接数据库
mysql_query("set names 'utf8'");
$db_selected = mysql_select_db($mysql_database, $conn);
$insert="ALTER TABLE go_family ADD families_id int(11)";
$result = mysql_query($insert,$conn);
if($result)
{
    $url = "index.php";
    echo "<script language='javascript' type='text/javascript'>";
    echo "window.location.href='$url'";
    echo "</script>";
}
else
{
    print "更新架构失败，请联系技术人员";
}
